<!--
 * @Author: hutong huareu980@163.com
 * @Date: 2023-06-14 11:57:16
 * @LastEditors: hutong huareu980@163.com
 * @LastEditTime: 2023-06-14 12:06:02
 * @FilePath: /smart-web-admin/src/components/ossImage/index.vue
 * @Description: 
-->
<template>
	<el-image :src="imgUrl" :zoom-rate="1.2" :initial-index="4" fit="cover" />
</template>

<script setup lang="ts">
import { computed } from 'vue';

interface Props {
	src: string;
}

const props = withDefaults(defineProps<Props>(), {
	src: '',
});

const imgUrl = computed(() => {
	return import.meta.env.VITE_OSS_URL + '/' + props.src;
});
</script>
<style scoped lang="scss"></style>
